#include<bits/stdc++.h>
using namespace std;
#define int long long
#define endl '\n'

signed main() {
    ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
    int n; cin >> n;
    for (int i = 1; i <= n / 100; i++) cout << "B";
    for (int i = 1; i <= n / 10 % 10; i++) cout << "S";
    for (int i = 1; i <= n % 10; i++) cout << i;
    return 0;
}